package com.muchun.base.service.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.muchun.base.dao.BaseDao;
import com.muchun.base.service.BaseService;

@Service("baseService")
@SuppressWarnings("all")
public class BaseServiceImpl<T> implements BaseService<T> {
	@Autowired
    private BaseDao baseDao;
	public Object save(Object o) {
		return baseDao.save(o);
	}
	public void delete(Object o) {
		baseDao.delete(o);
	}
	public void update(Object o) {
		baseDao.update(o);
	}
	public <T> T get(Class<T> clazz, Serializable id) {
		return (T)baseDao.get(clazz, id);
	}
	public <T> List<T> findList(CharSequence queryString,
			Map<String, Object> params) {
		return baseDao.findList(queryString, params);
	}
}
